package br.perfiman.service.impl;

import java.util.List;

import javax.ejb.EJB;
import javax.ejb.Stateless;

import br.perfiman.dao.AbstractDAOService;
import br.perfiman.dao.PersonDAOService;
import br.perfiman.model.Person;
import br.perfiman.service.PersonService;

/**
 *
 * @author Wagner Costa
 * @since 27/12/2007
 * @version 1.0
 *
 */
@Stateless
public class PersonServiceBean extends AbstractServiceBean<Person> implements PersonService{
	@EJB(name="PersonDAOService")
	protected PersonDAOService dao;

	@Override
	public AbstractDAOService<Person> getDao() {
		return dao;
	}

	@Override
	public Person insert(Person entity) throws Exception {
		return super.insert(entity);
	}

	@Override
	public void remove(Person entity) throws Exception {
		super.remove(entity);
	}

	@Override
	public List<Person> retrieveAll() throws Exception {
		return super.retrieveAll();
	}

	@Override
	public Person retrieveById(Object id) throws Exception {
		return super.retrieveById(id);
	}

	@Override
	public Person update(Person entity) throws Exception {
		return super.update(entity);
	}

	@Override
	public void validateBussinessRules(Person entity, boolean isUpdate) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void validateInvalidFields(Person entity, boolean isUpdate) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void validateRequiredFields(Person entity, boolean isUpdate) {
		// TODO Auto-generated method stub
		
	}
}
